#include "SDLComponent.h"

int SDLComponent::count = 0;
std::vector<SDLComponent*> SDLComponent::components;

SDLComponent::SDLComponent()
	: isVisible(false)
	, isInitialized(false)
	, name("")
{
	Enable();
}
SDLComponent::~SDLComponent()
{
}
void SDLComponent::Enable()
{
	if(!isInitialized)
	{
		isInitialized = true;
		components.push_back(this);
		count++;
	}
}
//void SDLComponent::Update(){}
//void SDLComponent::Draw(){}
void SDLComponent::Disable()
{
	isVisible = false;
}